import Taro, { Component } from '@tarojs/taro'
import { View, Text, Image, Picker, Swiper, SwiperItem } from '@tarojs/components'
import { AtForm, AtInput, AtRadio, AtList, AtAccordion, AtTextarea, AtImagePicker, AtListItem, AtButton, AtTabs, AtTabsPane, } from 'taro-ui'
import './tianjiabingli1.scss'
import reactMixin from 'react-mixin';
import myJs from './tianjiabingli1Js.js'
import app from '../../../main.js'

export default class Tianjiabingli1 extends Taro.Component {
    config = {
        navigationBarTitleText: '添加病历1'
    }
    constructor() {
        super(...arguments);
        this.state = this.getData();
    }

    init() {
        this.setState({
            open:true,
            open1:true,
            open2:true,
            open3:true,
            open4:true,
            open5:true,
            open6:true,
            open7:true,
            open8:true,
            open9:true,
            current:0,
            birthday:'',
            see_doctor_time:''
          })
     }
    state = {
        selector: ['美国', '中国', '巴西', '日本'],
        selectorChecked: '',
    }

    onDateChange(name,e){
        this.setState({
            [name]:e.detail.value
        })
    }

    allSubmit(){
        this.createCaseDetail();
        this.createLeftEye();
        this.createRightEye();
        this.redirectTo.bind(this,'../medicalhomepage/medicalhomepage');
    }

    // onChange = e => {
    //     this.setState({
    //         selectorChecked: this.state.selector[e.detail.value]
    //     })
    // }


    render() {
        const tabList = [{ title: '左眼' }, { title: '右眼' }]
        return (
        <View className='tianjiabingli1'>
            <AtForm>
                <AtInput
                title='姓名'
                name='value'
                type='text'
                placeholder='请输入姓名'
                value={this.state.case_detail.patient_name}
                onChange={this.handleChange.bind(this,'case_detail.patient_name')}
                />
            </AtForm>
            <View className=' class_0'>
                <View className=' class_1'>
                    <Text className=' class_2'>性别</Text>
                </View>
            </View>
            <AtRadio className='xingbie'
                options={[{ label: '男', value: 'option1' }, { label: '女', value: 'option2' }]}
                value={this.state.case_detail.gender}
                onClick={this.handleChange.bind(this,'case_detail.gender')}
            />
            <Picker mode='date' onChange={this.onDateChange.bind(this,'birthday')}>
                <View className=' class_3'>
                    <Text className=' class_4'>出生日期：{this.state.birthday}</Text>
                </View>
            </Picker>
            <AtForm>
                <AtInput
                title='手机号'
                name='value'
                type='phone'
                placeholder='请输入号码'
                value={this.state.case_detail.phone}
                onChange={this.handleChange.bind(this,'case_detail.phone')}
                />
            </AtForm>
            <Picker mode='selector' range={this.state.selector} onChange={this.onChange}>
                <View className=' class_5'>
                    <Text className=' class_6'>居住地：{this.state.selectorChecked}</Text>
                </View>
            </Picker>
            <AtForm>
                <AtInput
                title='标签'
                name='value'
                placeholder='请输入标签'
                value={this.state.case_detail.labels}
                onChange={this.handleChange.bind(this,'case_detail.labels')}
                />
            </AtForm>
            <Picker mode='date' onChange={this.onDateChange.bind(this,'see_doctor_time')}>
                <View className=' class_7'>
                    <Text className=' class_8'>就诊日期：{this.state.see_doctor_time}</Text>
                </View>
            </Picker>
            <AtList className=' class_9'>
                <View className=' shuru'>主诉：</View>
                <AtTextarea
                    name='value'
                    type='text'
                    placeholder='输入主诉'
                    value={this.state.case_detail.main_suit}
                    onChange={this.handleTextareaChange.bind(this,'case_detail.main_suit')}
                />
            </AtList>
            <AtList className=' class_10'>
                <View className=' shuru'>现病史：</View>
                <AtTextarea
                    name='value'
                    type='text'
                    placeholder='输入现病史'
                    value={this.state.case_detail.present_illness}
                    onChange={this.handleTextareaChange.bind(this,'case_detail.present_illness')}
                />
            </AtList>
            <AtList className=' class_11'>
            <AtAccordion title='既往史'
                    open={this.state.open3}
                    onClick={this.handleChange.bind(this,'open3')}
                >
            <AtInput
            title='慢性病史'
            name='value'
            placeholder='请输入'
            value={this.state.case_detail.manxingbingshi}
            onChange={this.handleChange.bind(this,'case_detail.manxingbingshi')}
            />
            <AtInput
            title='眼外伤史'
            name='value'
            placeholder='请输入'
            value={this.state.case_detail.yanwaishangshi}
            onChange={this.handleChange.bind(this,'case_detail.yanwaishangshi')}
            />
            <AtInput
            title='屈光状态'
            name='value'
            placeholder='请输入'
            value={this.state.case_detail.quguangzhuangtai}
            onChange={this.handleChange.bind(this,'case_detail.quguangzhuangtai')}
            />
            <AtInput
            title='眼部手术史'
            name='value'
            placeholder='请输入'
            value={this.state.case_detail.yanbusoushushi}
            onChange={this.handleChange.bind(this,'case_detail.yanbusoushushi')}
            />
            <AtInput
            title='眼病史'
            name='value'
            placeholder='请输入'
            value={this.state.case_detail.yanbingshi}
            onChange={this.handleChange.bind(this,'case_detail.yanbingshi')}
            />
            <AtInput
            title='传染病史'
            name='value'
            placeholder='请输入'
            value={this.state.case_detail.chuanranbingshi}
            onChange={this.handleChange.bind(this,'case_detail.chuanranbingshi')}
            />
            <AtInput
            title='过敏史'
            name='value'
            placeholder='请输入'
            value={this.state.case_detail.guominshi}
            onChange={this.handleChange.bind(this,'case_detail.guominshi')}
            />
            </AtAccordion>
            </AtList>
            <AtList className=' class_12'>
                <View className=' shuru'>家族史：</View>
                <AtTextarea
                    name='value'
                    type='text'
                    placeholder='输入家族史'
                    value={this.state.case_detail.family_illness}
                    onChange={this.handleTextareaChange.bind(this,'case_detail.family_illness')}
                />
            </AtList>
            <AtList className=' class_13'>
                <AtAccordion title='体格检查' open={this.state.open1} onClick={this.handleChange.bind(this, 'open1')} isAnimation={true}>
                <AtInput
            title='体温'
            name='value'
            placeholder='请输入体温'
            value={this.state.case_detail.tiwen}
            onChange={this.handleChange.bind(this,'case_detail.chuanranbingshi')}
            />
            <AtInput
            title='呼吸'
            name='value'
            placeholder='请输入呼吸'
            value={this.state.case_detail.huxi}
            onChange={this.handleChange.bind(this,'case_detail.chuanranbingshi')}
            />
            <AtInput
            title='脉搏'
            name='value'
            placeholder='请输入脉搏'
            value={this.state.case_detail.maibo}
            onChange={this.handleChange.bind(this,'case_detail.chuanranbingshi')}
            />
            <AtInput
            title='血压'
            name='value'
            placeholder='请输入血压'
            value={this.state.case_detail.xueya_shousuo+this.state.case_detail.xueya_shuzhang}
            onChange={this.handleChange.bind(this,'case_detail.chuanranbingshi')}
            />
            <AtInput
            title='体重'
            name='value'
            placeholder='请输入体重'
            value={this.state.case_detail.tizhong}
            onChange={this.handleChange.bind(this,'case_detail.tizhong')}
            />
                </AtAccordion>
            </AtList>
            <AtList className=' class_19'>
                <AtAccordion title='眼科检查（选择填写）' open={this.state.open2} onClick={this.handleChange.bind(this,'open2')}>
                    <AtTabs current={this.state.current} tabList={tabList} onClick={this.handleChange.bind(this,'current')}>
                        <AtTabsPane current={this.state.current} index={0} >
                            <View className='class_20'>
                                <AtInput className=' class_19'
                                title='裸眼视力'
                                name='value'
                                placeholder='请输入视力'
                                value={this.state.left_eye.luoyanshili}
                                onChange={this.handleChange.bind(this,'left_eye.luoyanshili')}
                                />
                                <AtAccordion 
                                 title='矫正' 
                                 open={this.state.open6} 
                                 className=' class_19'
                                 onClick={this.handleChange.bind(this,'open6')} 
                                >
                                <AtInput className='class_22'
                                title='DS'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.ds}
                                onChange={this.handleChange.bind(this,'left_eye.ds')}
                                />
                                <AtInput className='class_23'
                                title='DC'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.dcx}
                                onChange={this.handleChange.bind(this,'left_eye.dcx')}
                                />
                                <AtInput className='class_24'
                                title='度数'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.zhouwei}
                                onChange={this.handleChange.bind(this,'left_eye.zhouwei')}
                                />
                                <AtInput
                                title='→' className='class_22'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.jiaozheng}
                                onChange={this.handleChange.bind(this,'left_eye.jiaozheng')}
                                />
                                </AtAccordion>
                                <AtInput
                                title='光定位' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.guangdingwei}
                                onChange={this.handleChange.bind(this,'left_eye.guangdingwei')}
                                />
                                <AtInput
                                title='色觉' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.sejue}
                                onChange={this.handleChange.bind(this,'left_eye.sejue')}
                                />
                                <AtInput
                                title='眼睑' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.yanjian}
                                onChange={this.handleChange.bind(this,'left_eye.yanjian')}
                                />
                                <AtInput
                                title='眼位' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.yanwei}
                                onChange={this.handleChange.bind(this,'left_eye.yanwei')}
                                />
                                <AtInput
                                title='眼球' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.yanqiu}
                                onChange={this.handleChange.bind(this,'left_eye.yanqiu')}
                                />
                                <AtInput
                                title='睫毛' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.jiemao}
                                onChange={this.handleChange.bind(this,'left_eye.jiemao')}
                                />
                                <AtInput
                                title='结膜' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.jiemo}
                                onChange={this.handleChange.bind(this,'left_eye.jiemo')}
                                />
                                <AtInput
                                title='胬肉' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.nurou}
                                onChange={this.handleChange.bind(this,'left_eye.nurou')}
                                />
                                <AtInput
                                title='泪道冲洗' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.leidaochongxi}
                                onChange={this.handleChange.bind(this,'left_eye.leidaochongxi')}
                                />
                                <AtInput
                                title='角膜' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.jiaomo}
                                onChange={this.handleChange.bind(this,'left_eye.jiaomo')}
                                />
                                {/* <AtInput
                                title='巩膜' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.leidaochongxi}
                                onChange={this.handleChange.bind(this,'left_eye.leidaochongxi')}
                                /> */}
                                <AtInput
                                title='虹膜' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.hongmo}
                                onChange={this.handleChange.bind(this,'left_eye.hongmo')}
                                />
                                <AtInput
                                title='瞳孔' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.tongkong}
                                onChange={this.handleChange.bind(this,'left_eye.tongkong')}
                                />
                                <AtInput
                                title='晶状体' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.jingzhuangti}
                                onChange={this.handleChange.bind(this,'left_eye.jingzhuangti')}
                                />
                                <AtInput
                                title='玻璃体' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.boliti}
                                onChange={this.handleChange.bind(this,'left_eye.boliti')}
                                />
                                <AtInput
                                title='眼底' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.yandi}
                                onChange={this.handleChange.bind(this,'left_eye.yandi')}
                                />
                                <AtAccordion 
                                 title='前房' 
                                 open={this.state.open7} 
                                 className=' qianfang'
                                 onClick={this.handleChange.bind(this,'open7')}
                                 >
                                <AtInput
                                title='轴深' className='class_21'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.qianfang.axis_depth}
                                onChange={this.handleChange.bind(this,'left_eye.qianfang.axis_depth')}
                                />
                                <AtInput
                                title='周深' className='class_21'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.qianfang.week_depth}
                                onChange={this.handleChange.bind(this,'left_eye.qianfang.week_depth')}
                                />
                                {/* <AtInput
                                title='房闪' className='class_21'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.qianfang.axis_depth}
                                onChange={this.handleChange.bind(this,'left_eye.qianfang.axis_depth')}
                                />
                                <AtInput
                                title='细胞' className='class_21'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.qianfang.week_depth}
                                onChange={this.handleChange.bind(this,'left_eye.qianfang.week_depth')}
                                /> */}
                                </AtAccordion>
                                <AtInput
                                title='眼压' className='class_45'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.yanya}
                                onChange={this.handleChange.bind(this,'left_eye.yanya')}
                                />
                                <AtInput
                                title='AB超' className='class_45'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.abchao}
                                onChange={this.handleChange.bind(this,'left_eye.abchao')}
                                />
                                {/* <AtInput title='角膜内皮' placeholder='请输入' className=' class_46'></AtInput>
                                <AtInput title='角膜厚度' placeholder='请输入' className=' class_47'></AtInput>
                                <AtAccordion title='角膜曲率' open={true} className=' qianfang'>
                                    <AtInput title='K1' placeholder='请输入' className=' class_21'></AtInput>
                                    <AtInput title='K2' placeholder='请输入' className=' class_21'></AtInput>
                                    <AtInput title='K3' placeholder='请输入' className=' class_21'></AtInput>
                                    <AtInput title='K4' placeholder='请输入' className=' class_21'></AtInput>
                                </AtAccordion> */}
                                {/* <AtInput title='B超' placeholder='请输入' className=' class_53'></AtInput> */}
                                {/* <AtAccordion title='预计人工晶体度数' open={true} className=' qianfang'>
                                    <AtInput title='+' placeholder='请输入' className=' class_21'></AtInput>
                                    <AtInput title='-' placeholder='请输入' className=' class_21'></AtInput>
                                </AtAccordion>
                                <AtInput title='术前最佳矫正视力' placeholder='请输入' className=' class_56'></AtInput> */}
                                <AtInput
                                title='内皮细胞数' className='class_57'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.neipixibao}
                                onChange={this.handleChange.bind(this,'left_eye.neipixibao')}
                                />
                                <AtInput
                                title='光焦度' className='class_57'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.guangjiaodu}
                                onChange={this.handleChange.bind(this,'left_eye.guangjiaodu')}
                                />
                                <AtInput
                                title='拱高' className='class_57'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.gonggao}
                                onChange={this.handleChange.bind(this,'left_eye.gonggao')}
                                />
                                </View>
                        </AtTabsPane>
                        <AtTabsPane current={this.state.current} index={1}>
                        <View className='class_20'>
                                <AtInput className=' class_19'
                                title='裸眼视力'
                                name='value'
                                placeholder='请输入视力'
                                value={this.state.right_eye.luoyanshili}
                                onChange={this.handleChange.bind(this,'right_eye.luoyanshili')}
                                />
                                <AtAccordion 
                                 title='矫正' 
                                 open={this.state.open8} 
                                 className=' class_19'
                                 onClick={this.handleChange.bind(this,'open8')}
                                 >
                                <AtInput className='class_22'
                                title='DS'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.ds}
                                onChange={this.handleChange.bind(this,'right_eye.ds')}
                                />
                                <AtInput className='class_23'
                                title='DC'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.dcx}
                                onChange={this.handleChange.bind(this,'right_eye.dcx')}
                                />
                                <AtInput className='class_24'
                                title='度数'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.zhouwei}
                                onChange={this.handleChange.bind(this,'right_eye.zhouwei')}
                                />
                                <AtInput
                                title='→' className='class_22'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.jiaozheng}
                                onChange={this.handleChange.bind(this,'right_eye.jiaozheng')}
                                />
                                </AtAccordion>
                                <AtInput
                                title='光定位' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.guangdingwei}
                                onChange={this.handleChange.bind(this,'right_eye.guangdingwei')}
                                />
                                <AtInput
                                title='色觉' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.sejue}
                                onChange={this.handleChange.bind(this,'right_eye.sejue')}
                                />
                                <AtInput
                                title='眼睑' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.yanjian}
                                onChange={this.handleChange.bind(this,'right_eye.yanjian')}
                                />
                                <AtInput
                                title='眼位' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.yanwei}
                                onChange={this.handleChange.bind(this,'right_eye.yanwei')}
                                />
                                <AtInput
                                title='眼球' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.yanqiu}
                                onChange={this.handleChange.bind(this,'right_eye.yanqiu')}
                                />
                                <AtInput
                                title='睫毛' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.jiemao}
                                onChange={this.handleChange.bind(this,'right_eye.jiemao')}
                                />
                                <AtInput
                                title='结膜' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.jiemo}
                                onChange={this.handleChange.bind(this,'right_eye.jiemo')}
                                />
                                <AtInput
                                title='胬肉' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.nurou}
                                onChange={this.handleChange.bind(this,'right_eye.nurou')}
                                />
                                <AtInput
                                title='泪道冲洗' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.leidaochongxi}
                                onChange={this.handleChange.bind(this,'right_eye.leidaochongxi')}
                                />
                                <AtInput
                                title='角膜' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.jiaomo}
                                onChange={this.handleChange.bind(this,'right_eye.jiaomo')}
                                />
                                {/* <AtInput
                                title='巩膜' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.left_eye.leidaochongxi}
                                onChange={this.handleChange.bind(this,'left_eye.leidaochongxi')}
                                /> */}
                                <AtInput
                                title='虹膜' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.hongmo}
                                onChange={this.handleChange.bind(this,'right_eye.hongmo')}
                                />
                                <AtInput
                                title='瞳孔' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.tongkong}
                                onChange={this.handleChange.bind(this,'right_eye.tongkong')}
                                />
                                <AtInput
                                title='晶状体' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.jingzhuangti}
                                onChange={this.handleChange.bind(this,'right_eye.jingzhuangti')}
                                />
                                <AtInput
                                title='玻璃体' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.boliti}
                                onChange={this.handleChange.bind(this,'right_eye.boliti')}
                                />
                                <AtInput
                                title='眼底' className='class_25'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.yandi}
                                onChange={this.handleChange.bind(this,'right_eye.yandi')}
                                />
                                <AtAccordion 
                                 title='前房' 
                                 open={this.state.open9} 
                                 className=' qianfang'
                                 onClick={this.handleChange.bind(this,'open9')}
                                 >
                                <AtInput
                                title='轴深' className='class_21'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.qianfang.axis_depth}
                                onChange={this.handleChange.bind(this,'right_eye.qianfang.axis_depth')}
                                />
                                <AtInput
                                title='周深' className='class_21'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.qianfang.week_depth}
                                onChange={this.handleChange.bind(this,'right_eye.qianfang.week_depth')}
                                />
                                {/* <AtInput
                                title='房闪' className='class_21'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.qianfang.axis_depth}
                                onChange={this.handleChange.bind(this,'right_eye.qianfang.axis_depth')}
                                />
                                <AtInput
                                title='细胞' className='class_21'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.qianfang.week_depth}
                                onChange={this.handleChange.bind(this,'right_eye.qianfang.week_depth')}
                                /> */}
                                </AtAccordion>
                                <AtInput
                                title='眼压' className='class_45'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.yanya}
                                onChange={this.handleChange.bind(this,'right_eye.yanya')}
                                />
                                <AtInput
                                title='AB超' className='class_45'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.abchao}
                                onChange={this.handleChange.bind(this,'right_eye.abchao')}
                                />
                                {/* <AtInput title='角膜内皮' placeholder='请输入' className=' class_46'></AtInput>
                                <AtInput title='角膜厚度' placeholder='请输入' className=' class_47'></AtInput>
                                <AtAccordion title='角膜曲率' open={true} className=' qianfang'>
                                    <AtInput title='K1' placeholder='请输入' className=' class_21'></AtInput>
                                    <AtInput title='K2' placeholder='请输入' className=' class_21'></AtInput>
                                    <AtInput title='K3' placeholder='请输入' className=' class_21'></AtInput>
                                    <AtInput title='K4' placeholder='请输入' className=' class_21'></AtInput>
                                </AtAccordion> */}
                                {/* <AtInput title='B超' placeholder='请输入' className=' class_53'></AtInput> */}
                                {/* <AtAccordion title='预计人工晶体度数' open={true} className=' qianfang'>
                                    <AtInput title='+' placeholder='请输入' className=' class_21'></AtInput>
                                    <AtInput title='-' placeholder='请输入' className=' class_21'></AtInput>
                                </AtAccordion>
                                <AtInput title='术前最佳矫正视力' placeholder='请输入' className=' class_56'></AtInput> */}
                                <AtInput
                                title='内皮细胞数' className='class_57'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.neipixibao}
                                onChange={this.handleChange.bind(this,'right_eye.neipixibao')}
                                />
                                <AtInput
                                title='光焦度' className='class_57'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.guangjiaodu}
                                onChange={this.handleChange.bind(this,'right_eye.guangjiaodu')}
                                />
                                <AtInput
                                title='拱高' className='class_57'
                                name='value'
                                placeholder='请输入'
                                value={this.state.right_eye.gonggao}
                                onChange={this.handleChange.bind(this,'right_eye.gonggao')}
                                />
                                </View>
                        </AtTabsPane>
                    </AtTabs>
                </AtAccordion>
            </AtList>
            <AtList className=' class_59'>
                <View className=' shuru'>诊断：</View>
                <AtTextarea
                    name='value'
                    placeholder='输入诊断'
                    value={this.state.case_detail.zhenduan}
                    onChange={this.handleTextareaChange.bind(this,'case_detail.zhenduan')}
                />
            </AtList>
            <AtList className=' class_60'>
                <View className=' shuru'>治疗：</View>
                <AtTextarea
                    name='value'
                    placeholder='输入治疗方案'
                    value={this.state.case_detail.zhiliao}
                    onChange={this.handleTextareaChange.bind(this,'case_detail.zhiliao')}
                />
            </AtList>
            <AtList className=' class_61'>
                <AtAccordion title='拍摄检查报告' open={this.state.open4} onClick={this.handleChange.bind(this,'open4')}>
                    <AtImagePicker files={[]}></AtImagePicker>
                </AtAccordion>
            </AtList>
            <AtList className=' class_62'>
                <AtAccordion title='患者病程' open={this.state.open5} onClick={this.handleChange.bind(this,'open5')}>
                    <AtList className='class_20'>
                        <AtListItem title='首诊' extraText='2019-01-25' arrow='right' ></AtListItem>
                    </AtList>
                    <AtList className='class_20'>
                        <AtListItem title='首诊' extraText='2019-01-25' arrow='right'></AtListItem>
                    </AtList>
                </AtAccordion>
            </AtList>
            <View className=' class_63'>
                <View className='tianjia'>
                    <AtButton className=' class_64' onClick={this.navigateTo.bind(this,'../.adddisease/adddisease')}>
                        <Text className=' class_65'>添加病程</Text>
                    </AtButton>
                </View>
                <View className='baocun'>
                    <AtButton className=' class_66' onClick={this.allSubmit}>
                        <Text className=' class_67'>保存病历</Text>
                    </AtButton>
                </View>
            </View>
        </View>
        );
    }
}
reactMixin.onClass(Tianjiabingli1, myJs);